package com.sskj.fabi.bean;

import com.sskj.common.base.App;
import com.sskj.fabi.R;
import com.sskj.lib.util.CoinUtil;
import com.sskj.lib.util.NumberUtil;

public class BuySellBean {
    /**
     * account : 3841114
     * order_no : 15302613577314929539
     * realname : 郭*
     * trans_num : 100.0000
     * deals_num : 0.0000
     * price : 10.00
     * min_price : 10.00
     * max_price : 1000.00
     * pay_wx : 1
     * pay_alipay : 0
     * pay_backcard : 0
     * add_time : 1530261357
     * amount : 100.0000
     * quota : 10.00-1000.00
     * cd_num : 0
     * rate : 0.0000
     */

    private String account;
    private String order_no;
    private String realname;
    private String trans_num;
    private String deals_num;
    public String price;
    private String min_price;
    private String max_price;
    private String pay_wx;
    private String pay_alipay;
    private String pay_backcard;
    private String add_time;
    private String amount;
    private String quota;
    private String cd_num;
    private String rate;
    private String paypal;

    public String getPaypal() {
        return paypal;
    }

    public void setPaypal(String paypal) {
        this.paypal = paypal;
    }

    public String getLimitNum() {
        return App.INSTANCE.getString(R.string.fabi_buySellBean1) + CoinUtil.keepRMB(min_price) + "-" + CoinUtil.keepRMB(max_price) + " CNY";
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getOrder_no() {
        return order_no;
    }

    public void setOrder_no(String order_no) {
        this.order_no = order_no;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getTrans_num() {
        return NumberUtil.keepNoZero(trans_num);
    }

    public void setTrans_num(String trans_num) {
        this.trans_num = trans_num;
    }

    public String getDeals_num() {
        return deals_num;
    }

    public void setDeals_num(String deals_num) {
        this.deals_num = deals_num;
    }

    public String getPrice() {
        return CoinUtil.keepRMB(price) + " CNY";
    }


    public String getOriginPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getMin_price() {
        return min_price;
    }

    public void setMin_price(String min_price) {
        this.min_price = min_price;
    }

    public String getMax_price() {
        return max_price;
    }

    public void setMax_price(String max_price) {
        this.max_price = max_price;
    }

    public String getPay_wx() {
        return pay_wx;
    }

    public void setPay_wx(String pay_wx) {
        this.pay_wx = pay_wx;
    }

    public String getPay_alipay() {
        return pay_alipay;
    }

    public void setPay_alipay(String pay_alipay) {
        this.pay_alipay = pay_alipay;
    }

    public String getPay_backcard() {
        return pay_backcard;
    }

    public void setPay_backcard(String pay_backcard) {
        this.pay_backcard = pay_backcard;
    }

    public String getAdd_time() {
        return add_time;
    }

    public void setAdd_time(String add_time) {
        this.add_time = add_time;
    }

    public String getAmount() {
        return App.INSTANCE.getString(R.string.fabi_buySellBean2) + " " + CoinUtil.keepUSDT(amount) + " USDT";
    }

    public String getOriginAmount() {
        return amount.replace(",", "");
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public String getQuota() {
        return quota;
    }

    public void setQuota(String quota) {
        this.quota = quota;
    }

    public String getCd_num() {
        return cd_num;
    }

    public void setCd_num(String cd_num) {
        this.cd_num = cd_num;
    }

    public String getRate() {
        return rate;
    }

    public void setRate(String rate) {
        this.rate = rate;
    }
}
